<p><?= $this->App->buttonLink('+ Novi kurs', '/currency_exchange/create') ?></p>
<?= $this->element('entity_table', array(
    'columns' => array(
        'Id'            => 'CurrencyExchange.id',
        'Datum'         => array('CurrencyExchange.date', function($row) {
            return date_local($row['CurrencyExchange']['date']); 
        }),
        'Kurs'  => array('CurrencyExchange.rate', function($row) {
            return currency_format($row['CurrencyExchange']['rate']);
        })
    ),
    'columnWidth' => array(
        'Id'    => '1%',
        'Datum' => '15%',
        'Kurs'  => '15%'
    ),
    'links' => array(
        'Datum' => array('/currency_exchange/edit/%d', 'CurrencyExchange.id')
    ),
    'filter' => array(
        'Datum' => ''.@$filter['CurrencyExchange']['date'],
        'Kurs'  => ''.@$filter['CurrencyExchange']['rate']
    ),
    'data'     => $currency_exchange,
    'id'       => 'CurrencyExchange.id',
    'entity'   => 'currency_exchange',
    'sort_by'  => $sort_by,
    'sort_dir' => $sort_dir
)) ?>
